package cn.tedu.serviceEdu.client;

import cn.tedu.commonUtils.R;
import cn.tedu.serviceEdu.client.impl.VodFileDegradeFeignClient;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "servicevod",fallback = VodFileDegradeFeignClient.class)
@Component
public interface VodClient {
    @DeleteMapping("/eduvod/vod/{id}")
    public R removeVideo(@PathVariable("id") String id);

    @DeleteMapping("/eduvod/vod/deleteVideoBatch")
    @ApiOperation("删除视频")
    public R deleteVideoBatch(@RequestParam("videoIdList") List<String> videoIdList);
}
